﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Designtime
{
    /// <summary>
    /// 可用的数据源池
    /// </summary>
    public interface IDataSourcePool
    {
        CPPEI.Coolzon.ServiceProxy.DesignServiceRef.PublishedDataSource[] GetDataSources();

        /// <summary>
        /// 获取所有的可用的静态数据源
        /// </summary>
        /// <returns></returns>
        Metadata.StaticDataSource[] GetStaticDataSources();

        /// <summary>
        /// 获取静态数据源的内容
        /// </summary>
        /// <param name="name"></param>
        /// <returns>content of staticdatasource</returns>
        string GetStaticDataSource(string name);
    }
}
